﻿<?xml version="1.0" encoding="utf-8"?>
<Witd:WITD application="Work item type editor" version="1.0" xmlns:Witd="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/typedef">
  <WORKITEMTYPE name="User Story">
    <DESCRIPTION>Tracks an activity the user will be able to perform with the product</DESCRIPTION>
    <GLOBALLISTS>
      <GLOBALLIST name="Builds - Jipsu">
        <LISTITEM value="Jipsu - Daily_20100522.1" />
        <LISTITEM value="Jipsu - Daily_20100522.2" />
        <LISTITEM value="Jipsu - Daily_20100522.3" />
        <LISTITEM value="Jipsu - Daily_20100522.4" />
        <LISTITEM value="Jipsu - Daily_20100522.5" />
        <LISTITEM value="Jipsu - Daily_20100522.6" />
        <LISTITEM value="Jipsu - Daily_20100522.7" />
        <LISTITEM value="Jipsu - Daily_20100522.8" />
        <LISTITEM value="Jipsu - Daily_20100522.9" />
        <LISTITEM value="Jipsu - Daily_20100522.10" />
        <LISTITEM value="Jipsu - Daily_20100522.11" />
        <LISTITEM value="Jipsu - Daily_20100522.12" />
        <LISTITEM value="Jipsu - Daily_20100522.13" />
        <LISTITEM value="Jipsu - Daily_20100522.14" />
        <LISTITEM value="Jipsu - Daily_20100522.15" />
        <LISTITEM value="Jipsu - Daily_20100522.16" />
        <LISTITEM value="Jipsu - Daily_20100522.17" />
        <LISTITEM value="Jipsu - Daily_20100522.18" />
        <LISTITEM value="Jipsu - Daily_20100522.19" />
        <LISTITEM value="Jipsu - Daily_20100523.1" />
        <LISTITEM value="Jipsu - Daily_20100523.2" />
        <LISTITEM value="Jipsu - Daily_20100524.1" />
        <LISTITEM value="Jipsu - Daily_20100524.2" />
        <LISTITEM value="Jipsu - Daily_20100525.1" />
        <LISTITEM value="Jipsu - Daily_20100526.1" />
        <LISTITEM value="Jipsu - Daily_20100529.1" />
        <LISTITEM value="Jipsu - Daily_20100805.1" />
        <LISTITEM value="Jipsu - Gated_20100805.1" />
        <LISTITEM value="Jipsu - Daily_20100807.1" />
        <LISTITEM value="Jipsu - Daily_20100807.2" />
        <LISTITEM value="Jipsu - Daily_20100811.1" />
        <LISTITEM value="Jipsu - Daily_20100811.2" />
        <LISTITEM value="Jipsu - Daily_20100811.3" />
        <LISTITEM value="Jipsu - Gated_20100812.1" />
        <LISTITEM value="Jipsu - Daily_20100812.1" />
        <LISTITEM value="Jipsu - Daily_20100812.2" />
        <LISTITEM value="Jipsu - Gated_20100821.1" />
        <LISTITEM value="Jipsu - Gated_20100821.2" />
        <LISTITEM value="Jipsu - Gated_20100821.3" />
      </GLOBALLIST>
      <GLOBALLIST name="Builds - QADIR">
        <LISTITEM value="QADIR - Daily_20100807.1" />
        <LISTITEM value="QADIR - Daily_20100811.1" />
      </GLOBALLIST>
      <GLOBALLIST name="Builds - QADIR-Test">
        <LISTITEM value="QADIR-Test - Daily_20100812.1" />
        <LISTITEM value="QADIR-Test - Daily_20100813.1" />
        <LISTITEM value="QADIR-Test - Daily_20100814.1" />
        <LISTITEM value="QADIR-Test - Daily_20100814.2" />
        <LISTITEM value="QADIR-Test - Daily_20100814.3" />
        <LISTITEM value="QADIR-Test - Daily_20100814.4" />
        <LISTITEM value="QADIR-Test - Daily_20100814.5" />
        <LISTITEM value="QADIR-Test - Daily_20100821.1" />
      </GLOBALLIST>
    </GLOBALLISTS>
    <FIELDS>
      <FIELD name="Title" refname="System.Title" type="String" reportable="dimension">
        <REQUIRED />
        <HELPTEXT>What the user will be able to do when this is implemented</HELPTEXT>
      </FIELD>
      <FIELD name="State" refname="System.State" type="String" reportable="dimension">
        <HELPTEXT>Active= work remains to be done; Resolved = awaiting acceptance tests; Closed = acceptance tests passed</HELPTEXT>
      </FIELD>
      <FIELD name="Rev" refname="System.Rev" type="Integer" reportable="dimension" />
      <FIELD name="Changed By" refname="System.ChangedBy" type="String" syncnamechanges="true" reportable="dimension">
        <ALLOWEXISTINGVALUE />
        <VALIDUSER />
      </FIELD>
      <FIELD name="State Change Date" refname="Microsoft.VSTS.Common.StateChangeDate" type="DateTime">
        <WHENCHANGED field="System.State">
          <SERVERDEFAULT from="clock" />
        </WHENCHANGED>
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Activated Date" refname="Microsoft.VSTS.Common.ActivatedDate" type="DateTime" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Activated By" refname="Microsoft.VSTS.Common.ActivatedBy" type="String" syncnamechanges="true" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <ALLOWEXISTINGVALUE />
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Reason" refname="System.Reason" type="String" reportable="dimension">
        <HELPTEXT>The reason why the story is in its current state</HELPTEXT>
      </FIELD>
      <FIELD name="Iteration Path" refname="System.IterationPath" type="TreePath" reportable="dimension">
        <HELPTEXT>The iteration within which this user story will be implemented</HELPTEXT>
      </FIELD>
      <FIELD name="Iteration ID" refname="System.IterationId" type="Integer" />
      <FIELD name="Assigned To" refname="System.AssignedTo" type="String" syncnamechanges="true" reportable="dimension">
        <ALLOWEXISTINGVALUE />
        <VALIDUSER />
        <HELPTEXT>The person currently working on this story</HELPTEXT>
      </FIELD>
      <FIELD name="Work Item Type" refname="System.WorkItemType" type="String" reportable="dimension" />
      <FIELD name="Closed By" refname="Microsoft.VSTS.Common.ClosedBy" type="String" syncnamechanges="true" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <ALLOWEXISTINGVALUE />
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Closed Date" refname="Microsoft.VSTS.Common.ClosedDate" type="DateTime" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Stack Rank" refname="Microsoft.VSTS.Common.StackRank" type="Double" reportable="dimension">
        <HELPTEXT>Work first on items with lower-valued stack rank. Set in triage.</HELPTEXT>
      </FIELD>
      <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">
        <SUGGESTEDVALUES>
          <LISTITEM value="&lt;None&gt;" />
        </SUGGESTEDVALUES>
        <HELPTEXT>The build in which the bug was fixed</HELPTEXT>
      </FIELD>
      <FIELD name="Resolved Reason" refname="Microsoft.VSTS.Common.ResolvedReason" type="String" reportable="dimension" />
      <FIELD name="Created Date" refname="System.CreatedDate" type="DateTime" reportable="dimension" />
      <FIELD name="Created By" refname="System.CreatedBy" type="String" syncnamechanges="true" reportable="dimension" />
      <FIELD name="Resolved By" refname="Microsoft.VSTS.Common.ResolvedBy" type="String" syncnamechanges="true" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <ALLOWEXISTINGVALUE />
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Resolved Date" refname="Microsoft.VSTS.Common.ResolvedDate" type="DateTime" reportable="dimension">
        <WHENNOTCHANGED field="System.State">
          <READONLY />
        </WHENNOTCHANGED>
      </FIELD>
      <FIELD name="Start Date" refname="Microsoft.VSTS.Scheduling.StartDate" type="DateTime" reportable="dimension">
        <HELPTEXT>The start date for implementation of this story</HELPTEXT>
      </FIELD>
      <FIELD name="Finish Date" refname="Microsoft.VSTS.Scheduling.FinishDate" type="DateTime" reportable="dimension">
        <HELPTEXT>The completion date for all the tasks implementing this story</HELPTEXT>
      </FIELD>
      <FIELD name="Story Points" refname="Microsoft.VSTS.Scheduling.StoryPoints" type="Double" reportable="measure">
        <HELPTEXT>The size of work estimated for implementing this user story</HELPTEXT>
      </FIELD>
      <FIELD name="Risk" refname="Microsoft.VSTS.Common.Risk" type="String" reportable="dimension">
        <ALLOWEDVALUES>
          <LISTITEM value="1 - High" />
          <LISTITEM value="2 - Medium" />
          <LISTITEM value="3 - Low" />
        </ALLOWEDVALUES>
        <HELPTEXT>Uncertainty in requirement or design</HELPTEXT>
      </FIELD>
      <FIELD name="Description" refname="System.Description" type="PlainText">
        <HELPTEXT>Description or reference to the story that must work for this work to be considered complete</HELPTEXT>
      </FIELD>
      <FIELD name="History" refname="System.History" type="History">
        <HELPTEXT>Discussion thread plus automatic record of changes</HELPTEXT>
      </FIELD>
      <FIELD name="External Link Count" refname="System.ExternalLinkCount" type="Integer" />
      <FIELD name="Related Link Count" refname="System.RelatedLinkCount" type="Integer" />
      <FIELD name="Team Project" refname="System.TeamProject" type="String" reportable="dimension" />
      <FIELD name="Hyperlink Count" refname="System.HyperLinkCount" type="Integer" />
      <FIELD name="Attached File Count" refname="System.AttachedFileCount" type="Integer" />
      <FIELD name="Node Name" refname="System.NodeName" type="String" />
      <FIELD name="Area Path" refname="System.AreaPath" type="TreePath" reportable="dimension">
        <HELPTEXT>The area of the product with which this user story is associated</HELPTEXT>
      </FIELD>
      <FIELD name="Revised Date" refname="System.RevisedDate" type="DateTime" reportable="detail" />
      <FIELD name="Changed Date" refname="System.ChangedDate" type="DateTime" reportable="dimension" />
      <FIELD name="ID" refname="System.Id" type="Integer" reportable="dimension" />
      <FIELD name="Area ID" refname="System.AreaId" type="Integer" />
      <FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" syncnamechanges="true" />
    </FIELDS>
    <WORKFLOW>
      <STATES>
        <STATE value="Development" />
        <STATE value="Deploy" />
        <STATE value="Backlog" />
        <STATE value="Development Done" />
        <STATE value="Test" />
        <STATE value="Test Done" />
        <STATE value="Complete" />
      </STATES>
      <TRANSITIONS>
        <TRANSITION from="" to="Backlog">
          <REASONS>
            <DEFAULTREASON value="New" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Development" to="Development Done">
          <REASONS>
            <DEFAULTREASON value="Complete Development" />
          </REASONS>
          <FIELDS>
            <FIELD refname="System.AssignedTo">
              <ALLOWEXISTINGVALUE />
              <EMPTY />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Backlog" to="Development">
          <REASONS>
            <DEFAULTREASON value="Begin Development" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedBy">
              <ALLOWEXISTINGVALUE />
              <VALIDUSER />
              <REQUIRED />
              <COPY from="currentuser" />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ActivatedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Development Done" to="Test">
          <REASONS>
            <DEFAULTREASON value="Begin Test" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Test" to="Test Done">
          <REASONS>
            <DEFAULTREASON value="Test Complete" />
          </REASONS>
          <FIELDS>
            <FIELD refname="System.AssignedTo">
              <ALLOWEXISTINGVALUE />
              <EMPTY />
            </FIELD>
          </FIELDS>
        </TRANSITION>
        <TRANSITION from="Test Done" to="Deploy">
          <REASONS>
            <DEFAULTREASON value="Begin Deploy" />
          </REASONS>
        </TRANSITION>
        <TRANSITION from="Deploy" to="Complete">
          <REASONS>
            <DEFAULTREASON value="Deploy Complete" />
          </REASONS>
          <FIELDS>
            <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
              <SERVERDEFAULT from="clock" />
            </FIELD>
            <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
              <ALLOWEXISTINGVALUE />
              <VALIDUSER />
              <REQUIRED />
              <COPY from="currentuser" />
            </FIELD>
            <FIELD refname="System.AssignedTo">
              <ALLOWEXISTINGVALUE />
              <EMPTY />
            </FIELD>
          </FIELDS>
        </TRANSITION>
      </TRANSITIONS>
    </WORKFLOW>
    <FORM>
      <Layout>
        <Group>
          <Column PercentWidth="100">
            <Control FieldName="System.Title" Type="FieldControl" Label="&amp;Title:" LabelPosition="Left" />
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="50">
            <Group Label="Status">
              <Column PercentWidth="100">
                <Control FieldName="System.AssignedTo" Type="FieldControl" Label="Assi&amp;gned To:" LabelPosition="Left" />
                <Control FieldName="System.State" Type="FieldControl" Label="&amp;State:" LabelPosition="Left" />
                <Control FieldName="System.Reason" Type="FieldControl" Label="&amp;Reason:" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
          <Column PercentWidth="50">
            <Group Label="Classification">
              <Column PercentWidth="100">
                <Control FieldName="System.AreaPath" Type="WorkItemClassificationControl" Label="&amp;Area:" LabelPosition="Left" />
                <Control FieldName="System.IterationPath" Type="WorkItemClassificationControl" Label="Ite&amp;ration:" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
        </Group>
        <Group>
          <Column PercentWidth="100">
            <Group Label="Planning">
              <Column PercentWidth="33">
                <Control FieldName="Microsoft.VSTS.Common.StackRank" Type="FieldControl" Label="Stack Ran&amp;k:" LabelPosition="Left" NumberFormat="DecimalNumbers" MaxLength="10" />
              </Column>
              <Column PercentWidth="33">
                <Control FieldName="Microsoft.VSTS.Scheduling.StoryPoints" Type="FieldControl" Label="Story Points:" LabelPosition="Left" />
              </Column>
              <Column PercentWidth="33">
                <Control FieldName="Microsoft.VSTS.Common.Risk" Type="FieldControl" Label="Risk:" LabelPosition="Left" />
              </Column>
            </Group>
          </Column>
        </Group>
        <TabGroup>
          <Tab Label="Details">
            <Group>
              <Column PercentWidth="50">
                <Control FieldName="System.Description" Type="HtmlFieldControl" Label="&amp;Description with Acceptance Criteria:" LabelPosition="Top" Dock="Fill" />
              </Column>
              <Column PercentWidth="50">
                <Control FieldName="System.History" Type="WorkItemLogControl" Label="&amp;History:" LabelPosition="Top" Dock="Fill" />
              </Column>
            </Group>
          </Tab>
          <Tab Label="Implementation">
            <Control Type="LinksControl" Label="Parent and &amp;Child Stories and Tasks:" LabelPosition="Top" Name="Hierarchy">
              <LinksControlOptions>
                <LinkColumns>
                  <LinkColumn RefName="System.ID" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.AssignedTo" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
                <WorkItemLinkFilters FilterType="include">
                  <Filter LinkType="System.LinkTypes.Hierarchy" />
                </WorkItemLinkFilters>
                <ExternalLinkFilters FilterType="excludeAll" />
                <WorkItemTypeFilters FilterType="include">
                  <Filter WorkItemType="User Story" />
                  <Filter WorkItemType="Task" />
                </WorkItemTypeFilters>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="Test Cases">
            <Control Type="LinksControl" Label="Test &amp;Cases testing this Story:" LabelPosition="Top" Name="TestedBy">
              <LinksControlOptions>
                <LinkColumns>
                  <LinkColumn RefName="System.ID" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.AssignedTo" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
                <WorkItemLinkFilters FilterType="include">
                  <Filter LinkType="Microsoft.VSTS.Common.TestedBy" FilterOn="forwardname" />
                </WorkItemLinkFilters>
                <ExternalLinkFilters FilterType="excludeAll" />
                <WorkItemTypeFilters FilterType="include">
                  <Filter WorkItemType="Test Case" />
                </WorkItemTypeFilters>
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="All Links">
            <Control Type="LinksControl" LabelPosition="Top" Name="GeneralLinks">
              <LinksControlOptions>
                <LinkColumns>
                  <LinkColumn RefName="System.ID" />
                  <LinkColumn RefName="System.WorkItemType" />
                  <LinkColumn RefName="System.Title" />
                  <LinkColumn RefName="System.AssignedTo" />
                  <LinkColumn RefName="System.State" />
                  <LinkColumn LinkAttribute="System.Links.Comment" />
                </LinkColumns>
                <WorkItemLinkFilters FilterType="includeAll" />
                <ExternalLinkFilters FilterType="includeAll" />
                <WorkItemTypeFilters FilterType="includeAll" />
              </LinksControlOptions>
            </Control>
          </Tab>
          <Tab Label="Attachments">
            <Control Type="AttachmentsControl" LabelPosition="Top" />
          </Tab>
        </TabGroup>
      </Layout>
    </FORM>
  </WORKITEMTYPE>
</Witd:WITD>